package cn.stephen.study.demoproject.dao.dbone;

import cn.stephen.study.demoproject.entity.Patrol;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PatrolMapper {

    List<Patrol> findAllByValue(@Param("startTime") String startTime,
                                @Param("endTime") String endTime,
                                @Param("stationCode") String stationCode);

    List<Patrol> findAllByValue1(@Param("startTime") String startTime,
                                 @Param("endTime") String endTime,
                                 @Param("stationCode") String stationCode);

    Patrol findAllById(@Param("id") String id);

    void delById(@Param("id") String id);

    Integer insetPatrol(Patrol patrol);

    int updatePatrol(Patrol patrol);
}
